Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vendored spectre-css to update its scss syntax around colors and math #1695

Merged
merged 1 commit into from
Oct 16, 2024

Conversation

crismali
Copy link
Contributor

@crismali crismali commented Oct 5, 2024

What it does

This swaps out deprecated sass functions and syntax for their modern counterparts.

Why it is important

The times are a-changin' and so must we.

UI Change Screenshot

An example of the deprecation message:
Screenshot 2024-10-05 at 3 48 51 PM

Implementation notes

Sass has a migration tool for these changes that I ran on the affected files. The TL;DR of these changes is that darken, lighten, and using / for division are all deprecated.

This PR looks super huge and it kind of is. Our primary css framework (Spectre CSS) hasn't had an update in about 4 years and deprecation warnings in the package were showing up in our build process. I copied the main scss code from the repo into our app/assets and ran the migration tool on those.

This is kind of a short term fix to get rid of some noise. Longer term, we should migrate off of Spectre to something else (I've added an issue for this).

@crismali crismali marked this pull request as ready for review October 7, 2024 14:39
Copy link
Member

@jim jim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a good stop-gap that'll buy us some time to figure out the right direction long term.

@jim jim merged commit 6da5b3b into main Oct 16, 2024
9 checks passed
@jim jim deleted the michael-prevent-sass-deprectation-warnings branch October 16, 2024 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants